package entities;

public class UserVote {
	private int userID ;
	private int adminID;
	private int votingID ;
	private boolean canVote;
	private boolean canVoteSet;
	public UserVote(){
		userID = -1;
		adminID = -1;
		votingID = -1;
		canVote = false;
		canVoteSet = false;
	}
	public void setUserID(int userID) {
		this.userID = userID;
	}
	public int getUserID() {
		return userID;
	}
	public void setVotingID(int votingID) {
		this.votingID = votingID;
	}
	public int getVotingID() {
		return votingID;
	}
	public void setAdminID(int adminID) {
		this.adminID = adminID;
	}
	public int getAdminID() {
		return adminID;
	}
	public void setCanVote(boolean canVote) {
		this.canVoteSet = true;
		this.canVote = canVote;
	}
	public boolean isCanVote() {
		return canVote;
	}
	public boolean isCanVoteSet() {
		return canVoteSet;
	}
	public String toString()
	{
		return "( " + adminID + " , " +votingID + " , "+ userID + " , " + 
		canVote + " )";
	}
	
}
